/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Homework.demo03;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PersonText {
    public static void main(String[] args) {
        Person p1 = new Person("张三","123","南宁");
        Person p2 = new Person("李四","666","南宁");
        Person p3 = new Person("王五","555","南宁");
        
        List s = new ArrayList();
        s.add(p1);
        s.add(p2);
        s.add(p3);
        
        System.out.println("ArrlayList 的元素是：");
        System.out.println(s);
        
    }

}
